#pragma once

#include "StdAfx.h"
#include "Player.h"

enum CommandName:unsigned int
{
	LOGIN, POLL, SAY, QUIT
};

class Network
{
public:
	static unsigned int localPort;
	static unsigned int remotePort;
private:
	Player *player;
	long playerID;
	std::vector<BYTE*> *datagrams;
	unsigned int index;

public:
	Network(Player *player);
	~Network();

	void login(Ogre::String username, Ogre::String passwd);
	void poll();
	void say();
	void quit();

	void send();
private:
};
